/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package core;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

/**
 *
 * @author buben
 */
public class TestData {
 
    public static final Map<Integer, User> USERS_TABLE = new HashMap<Integer, User>();
    public static final Map<Integer, SchoolMat> MATS_TABLE = new HashMap<Integer, SchoolMat>();
    public static final Map<String, String> themes = new TreeMap<String, String>();
    public static final Map<Integer, Activity> ACTS_TABLE = new HashMap<Integer, Activity>();
    public static final Map<Integer, Work> WORKS_TABLE = new HashMap<Integer, Work>();
    public static final Map<Integer, Comment> COMM_TABLE = new HashMap<Integer, Comment>();
    public static User loggedUser = null;
    public static String actualTheme = "sam";

    static {
        //student
        USERS_TABLE.put(1, new User(1, new Login("user1", "user1"), "Petr", "Novotny", "petr.novotny@seznam.cz", "+420 123 123 789", "home", true));
        USERS_TABLE.put(2, new User(2, new Login("user2", "user2"), "Karel", "Novak", "karel.novak@seznam.cz", "+420 123 123 456", "bootstrap", true));

        //ucitele
        USERS_TABLE.put(3, new User(3, new Login("teacher1", "teacher1"), "Karel", "Novak", "karel.novak@seznam.cz", "+420 123 123 456", "bootstrap", false));
        USERS_TABLE.put(4, new User(4, new Login("teacher2", "teacher2"), "Karel", "Novak", "karel.novak@seznam.cz", "+420 123 123 456", "bootstrap", false));
        
        //predmety
        Subject s1 = new Subject("Matematika", "Y36MA1", "Matematiky");
        Subject s2 = new Subject("Algoritmizace", "Y36ALG", "Počítačů");
        Subject s3 = new Subject("Algebra", "Y36LAG", "Matematiky");
        
        //materialy
        MATS_TABLE.put(1, new SchoolMat(1, "Prednaska 1 - doc", 2013,s3 , java.sql.Date.valueOf("2012-01-31"), java.sql.Date.valueOf("2012-02-25"), 1, 0, 1.23, 1, "resources/materials/test.doc",""));
        MATS_TABLE.put(2, new SchoolMat(2, "Prednaska 2 - docx", 2013,s3 , java.sql.Date.valueOf("2012-02-07"), java.sql.Date.valueOf("2012-03-05"), 2, 0, 2.01, 2, "resources/materials/test.docx",""));
        MATS_TABLE.put(3, new SchoolMat(3, "Prednaska 3 - odp", 2013,s3 , java.sql.Date.valueOf("2013-01-02"), java.sql.Date.valueOf("2013-02-01"), 1, 0, 1.56, 3, "resources/materials/test.odp",""));
        MATS_TABLE.put(4, new SchoolMat(4, "Prednaska 4 - odt", 2013,s3 , java.sql.Date.valueOf("2013-01-02"), java.sql.Date.valueOf("2013-02-01"), 1, 0, 1.56, 3, "resources/materials/test.odt",""));
        MATS_TABLE.put(5, new SchoolMat(5, "Prednaska 5 - ppt", 2013,s3 , java.sql.Date.valueOf("2013-01-02"), java.sql.Date.valueOf("2013-02-01"), 1, 0, 1.56, 3, "resources/materials/test.ppt",""));
        MATS_TABLE.put(6, new SchoolMat(6, "Prednaska 6 - pdf", 2013,s3 , java.sql.Date.valueOf("2013-01-02"), java.sql.Date.valueOf("2013-02-01"), 1, 0, 1.56, 3, "resources/materials/test3.pdf",""));
        MATS_TABLE.put(7, new SchoolMat(7, "Prednaska 7 - pdf", 2012,s1 , java.sql.Date.valueOf("2013-01-02"), java.sql.Date.valueOf("2013-02-01"), 1, 0, 1.56, 3, "resources/materials/test3.pdf",""));
        MATS_TABLE.put(8, new SchoolMat(8, "Prednaska 8 - pdf", 2012,s2 , java.sql.Date.valueOf("2013-01-02"), java.sql.Date.valueOf("2013-02-01"), 1, 0, 1.56, 3, "resources/materials/test.pdf",""));


        //moje aktivity - nema vazbu na usera, vsichni budou mit zatim stejne
        ACTS_TABLE.put(1, new Activity(1, "Vložení dokumentu", "Vložil jste dokument NUR.doc", java.sql.Date.valueOf("2012-09-19")));
        ACTS_TABLE.put(2, new Activity(2, "Komentář", "Okomentoval jste příspěvěk uživatele Petr Novotny", java.sql.Date.valueOf("2012-11-11")));
        ACTS_TABLE.put(3, new Activity(3, "Poznámka", "Vložena poznámka do materiálu NUR.doc", java.sql.Date.valueOf("2012-11-12")));
        
        //moje prace - nema vazbu na usera, vsichni budou mit zatim stejne
        WORKS_TABLE.put(1, new Work(1, "Semestralka NUR", "Semestralni prace na predmet Navrh Uzivatelskych Rozhrani", "sem-nur.doc", java.sql.Date.valueOf("2012-01-31"), java.sql.Date.valueOf("2012-02-25")));
        
        //komentare
        COMM_TABLE.put(1, new Comment(1, "komentář 1", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec tempor odio ut neque malesuada mollis. Vivamus mauris tellus, suscipit sed interdum ac, blandit eget enim.", 1));
        COMM_TABLE.put(2, new Comment(2, "komentář 1", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. ", 2));
        COMM_TABLE.put(3, new Comment(3, "komentář 1", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. ", 3));
        COMM_TABLE.put(4, new Comment(4, "komentář 1", "Lorem ipsum dolor sit amet.", 4));
        
        
        //vzhled
        themes.put("Cruze", "cruze");
        themes.put("Sam", "sam");
        themes.put("Bootstrap", "bootstrap");
        themes.put("Home", "home");
        themes.put("Redmond", "redmond");

    }
}
